package cn.yeziji.forum.vo.friendlyLink;

import cn.yeziji.forum.entity.ForumFriendlyLinkEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 友情链接返回对象
 *
 * @author gzkemays
 * @since 2022/11/11 9:32 PM
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FriendlyLinkVO {
  /** 链接图片 */
  String linkSrc;
  /** 链接地址 */
  String linkUrl;
  /** 链接名字 */
  String linkName;

  public FriendlyLinkVO(ForumFriendlyLinkEntity entity) {
    this.linkSrc = entity.getLinkSrc();
    this.linkUrl = entity.getLinkUrl();
    this.linkName = entity.getLinkName();
  }
}
